<template>
  <div>
    <myNotice :notice="editInfon" />
  </div>
</template>

<script>
import {getNoticeByNoApi} from "@/api/notice"
import myNotice from '@/components/MyNotice'
  export default {
    components: { myNotice },
    data(){
      return{
        info:undefined,
      }
    },
    created(){
      this.getNoticeInfo(this.$route.params.no);
    },
    methods:{
      async getNoticeInfo(no){
        let res = await getNoticeByNoApi({no});
        if(res!=null&&res.code==200){
          this.info = res.data;
        }
      },
    },
    computed:{
      editInfon(){
        if(this.info!=null){
          return this.info
        }
      }
    },
  }
</script>

<style lang="scss" scoped>

</style>
